package com.tedu.demo5_1.service;

import com.tedu.demo5_1.dao.IUserDAO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements IUserService{
    @Autowired
    private IUserDAO iuserDAO;
    public boolean login(String username,String password){
        boolean flag = iuserDAO.findUser();
        if(flag){
            System.out.println("Service层返回查询成功");
        }else{
            System.out.println("Service层返回查询失败");
        }
        return flag;

    }
}
